class BaseSearchComicsData {
    BaseDataSearchComicsData data;
    int code;
    String msg;

    BaseSearchComicsData({this.data, this.code, this.msg});

    factory BaseSearchComicsData.fromJson(Map<String, dynamic> json) {
        return BaseSearchComicsData(
            data: json['data'] != null ? BaseDataSearchComicsData.fromJson(json['data']) : null,
            code: json['code'],
            msg: json['msg'],
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['code'] = this.code;
        data['msg'] = this.msg;
        if (this.data != null) {
            data['data'] = this.data.toJson();
        }
        return data;
    }
}

class BaseDataSearchComicsData {
    List<SearchComicsData> data;
    int count;
    int from;
    int size;

    BaseDataSearchComicsData({this.data, this.count, this.from, this.size});

    factory BaseDataSearchComicsData.fromJson(Map<String, dynamic> json) {
        return BaseDataSearchComicsData(
            data: json['data'] != null ? (json['data'] as List).map((i) => SearchComicsData.fromJson(i)).toList() : null,
            count: json['count'],
            from: json['from'],
            size: json['size'],
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['count'] = this.count;
        data['from'] = this.from;
        data['size'] = this.size;
        if (this.data != null) {
            data['data'] = this.data.map((v) => v.toJson()).toList();
        }
        return data;
    }
}

class SearchComicsData {
    String author;
    String cartoonId;
    String cartoonType;
    int cartoonVariableId;
    String cover;
    String creationTime;
    String descs;
    int id;
    String title;
    String updateTime;

    SearchComicsData({this.author, this.cartoonId, this.cartoonType, this.cartoonVariableId, this.cover, this.creationTime, this.descs, this.id, this.title, this.updateTime});

    factory SearchComicsData.fromJson(Map<String, dynamic> json) {
        return SearchComicsData(
            author: json['author'],
            cartoonId: json['cartoonId'],
            cartoonType: json['cartoonType'],
            cartoonVariableId: json['cartoonVariableId'],
            cover: json['cover'],
            creationTime: json['creationTime'],
            descs: json['descs'],
            id: json['id'],
            title: json['title'],
            updateTime: json['updateTime'],
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['author'] = this.author;
        data['cartoonId'] = this.cartoonId;
        data['cartoonType'] = this.cartoonType;
        data['cartoonVariableId'] = this.cartoonVariableId;
        data['cover'] = this.cover;
        data['creationTime'] = this.creationTime;
        data['descs'] = this.descs;
        data['id'] = this.id;
        data['title'] = this.title;
        data['updateTime'] = this.updateTime;
        return data;
    }
}